package com.huoyun.announcement.bean;

import java.util.Date;

public class Notice {
	private long id;
	private long receiverId;
	private long itemId;
	private int type;
	private Date addTime;
	private Date readTime;
	private String subject;
	private String message;
	private int status;

	/**
	 * 系统通知
	 */
	public final static int TYPE_SYSTEM = 1;
	/**
	 * 应标报价邀请
	 */
	public final static int TYPE_BIDDING_INVITATION = 2;
	/**
	 * 应标成功通知
	 */
	public final static int TYPE_BIDDING_SUCCESS = 3;
	/**
	 * 评价
	 */
	public final static int TYPE_RATECOMMENT = 4;
	/**
	 * 新的报价
	 */
	public final static int TYPE_PRICING = 5;
	/**
	 * 招标完成时的打款通知
	 */
	public final static int TYPE_PAYMENT = 6;


	// public Notice11(int type, long receiverId, long itemId, String message) {
	// this.type = type;
	// this.receiverId = receiverId;
	// this.itemId = itemId;
	// this.status = 1;
	// switch (type) {
	// case Notice.TYPE_SYSTEM: {
	// this.receiverId = 0;
	// this.message = message;
	// }
	// case Notice.TYPE_BIDDING_INVITATION: {
	// this.message = "您收到一个新的货物应标邀请，请查看" + "<a href=\" \">" + "详细内容" + "</a>";
	// }
	// case Notice.TYPE_BIDDING_SUCCESS: {
	// this.message = "您的车辆已被选中，请查看" + "<a href=\" \">" + "详细内容" + "</a>";
	// }
	// case Notice.TYPE_PAYMENT: {
	// this.message = "您已完成招标，请尽快付款" + "<a href=\" \">" + "详细内容" + "</a>";
	// }
	// case Notice.TYPE_PRICING: {
	// this.message = "您的货物" + "<a href=\" \">" + "goods" + "</a>" +
	// "收到一个新的报价，请查看" + "<a href=\" \">" + "详细内容" + "</a>";
	// }
	// case Notice.TYPE_RATECOMMENT: {
	//
	// }
	// }
	//
	// }

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(long receiverId) {
		this.receiverId = receiverId;
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getStatus() {
		return status;
	}

	/**
	 * 
	 * @param status
	 *            1表示未读; 2表示已读; 3表示删除
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public long getItemId() {
		return itemId;
	}

	public void setItemId(long itemId) {
		this.itemId = itemId;
	}

}
